<?php

class Permissao
{
	public function __construct()
	{
		if(!$_SESSION["usuario_cod"])
		{
			if($_GET["m"])
			{
				if($_GET["p"] != "login")
				{
					header("Location: login_{$_GET["m"]}.php");
					
					return;
				}
			}
			else
			{
				header("Location: login.php");
			}
			
			return false;
		}
	}
}

?>